<template>
  <div class="img-wrap">
    <h1>路由跳转-img-{{ img }}</h1>
    <h2>img展示</h2>
  </div>
</template>

<script>
export default {
  computed: {
    img () {
      let img = this.$route.params.img
      return img
    }
  }
  // mounted () {
  //   console.log('img')
  // },
  // destroyed () {
  //   console.log('img-destroyed')
  // }
}
</script>

<style lang="scss" scoped>
  .img-wrap {
    width: 400px;
    background: chartreuse;
  }
</style>
